package com.example.sourcesprng.jdk8._lambda._predicate;

import java.util.function.Predicate;

public class PredicateTest {

    public static void main(String[] args) {
        predicateTest(param -> {
            return param.contains("abc");
        }, "abcdefgh");
    }

    public static void predicateTest(Predicate<String> predicate, String param) {
        boolean test = predicate.test(param);
        System.out.println(test);
    }
}
